<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="pageContent">
	<form method="post" action="${rootUrl}/goods/goods-country/${goodsCountry.id}" class="pageForm required-validate" onsubmit="return validateCallback(this, editDialogAjaxDone);">
		 <c:if test="${goodsCountry.id != 0 && goodsCountry.id != '' }"><input type="hidden" name="_method" value="put"></c:if>
		<input type="hidden" name="goodsCountry.id" value="${goodsCountry.id}">
		<div class="pageFormContent" layoutH="56">
			
			<p>
				<label>商品名称：</label>
				<input type="hidden"  name="goods.id" readonly="readonly" size="30" value="${goodsCountry.goods.id}"/>
				<input type="text"  name="goods.name" class="required" readonly="readonly" size="30" value="${goodsCountry.goods.name}"/>
			    <a class="btnLook" href="${rootUrl}/goods/goods/1/dialog?goods=${goodsCountry.goods.id}" lookupGroup="goods" width="1060" height="620">商品</a>
			</p>
			<p>
				<label>原产国(检)：</label>
				<input type="hidden" id="countryId_gI" name="countryId_g.id" readonly="readonly" size="30" value="${goodsCountry.countryId_g.id}"/>
				<input type="text"  id="countryId_g" name="countryId_g.name" class="required" readonly="readonly" size="30" value="${goodsCountry.countryId_g.name}"/>
			    <a class="btnLook" href="${rootUrl}/goods/country/1/dialog?countryId_g=${goodsCountry.countryId_g.id}" lookupGroup="countryId_g" width="1000" height="620">商品</a>
			</p>
		   <p>
				<label>国检单位：</label>
				<select  name="goodsCountry.unitId_g">
				<option <c:if test="${goodsCountry.unitId_g == 006}">selected="selected"</c:if> value="006">套</option>
				<option <c:if test="${goodsCountry.unitId_g == 007}">selected="selected"</c:if> value="007">个</option>
				<option <c:if test="${goodsCountry.unitId_g == 011}">selected="selected"</c:if> value="011">件</option>
				<option <c:if test="${goodsCountry.unitId_g == 012}">selected="selected"</c:if> value="012">支</option>
				<option <c:if test="${goodsCountry.unitId_g == 020}">selected="selected"</c:if> value="020">片</option>
				<option <c:if test="${goodsCountry.unitId_g == 036}">selected="selected"</c:if> value="036">克</option>
				<option <c:if test="${goodsCountry.unitId_g == 096}">selected="selected"</c:if> value="096">毫升</option>
				<option <c:if test="${goodsCountry.unitId_g == 140}">selected="selected"</c:if> value="140">盒</option>
				<option <c:if test="${goodsCountry.unitId_g == 142}">selected="selected"</c:if> value="142">瓶</option>
				</select>
			</p>
			<p>
				<label>原产国(关)：</label>
				<input type="hidden"  id="countryId_hI" name="countryId_h.id" readonly="readonly" size="30" value="${goodsCountry.countryId_h.id}"/>
				<input type="text"  id="countryId_h" name="countryId_h.name" class="required" readonly="readonly" size="30" value="${goodsCountry.countryId_h.name}"/>
			    <a class="btnLook" href="${rootUrl}/goods/country/1/dialog1?countryId_h=${goodsCountry.countryId_h.id}" lookupGroup="countryId_h" width="1000" height="620">商品</a>
			</p>
		   <p>
				<label>海关单位：</label>
				<select  name="goodsCountry.unitId_h">
				<option <c:if test="${goodsCountry.unitId_h == 006}">selected="selected"</c:if> value="006">套</option>
				<option <c:if test="${goodsCountry.unitId_h == 007}">selected="selected"</c:if> value="007">个</option>
				<option <c:if test="${goodsCountry.unitId_h == 011}">selected="selected"</c:if> value="011">件</option>
				<option <c:if test="${goodsCountry.unitId_h == 012}">selected="selected"</c:if> value="012">支</option>
				<option <c:if test="${goodsCountry.unitId_h == 020}">selected="selected"</c:if> value="020">片</option>
				<option <c:if test="${goodsCountry.unitId_h == 036}">selected="selected"</c:if> value="036">克</option>
				<option <c:if test="${goodsCountry.unitId_h == 096}">selected="selected"</c:if> value="096">毫升</option>
				<option <c:if test="${goodsCountry.unitId_h == 140}">selected="selected"</c:if> value="140">盒</option>
				<option <c:if test="${goodsCountry.unitId_h == 142}">selected="selected"</c:if> value="142">瓶</option>
				</select>
			</p>
   		 </div>
    	<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button id="theSubmit" type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
    </form>
   </div>